-
-
Couldn't load subscription status.
- Fork 279
refactor: apply webpack-defaults
#81
Conversation
|
Any ideas why they are failed? |
|
Why webpack canary is default? |
|
Latest is default |
|
Canary run once in Travis on Node8. If the question is why is it targeting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check the various config files for correctness, webpack-defaults sometimes leaves old bits in place on the first run, otherwise 👍 . I do the README upgrade during the day 😛
.eslintrc
Outdated
| @@ -0,0 +1,20 @@ | |||
| { | |||
| "extends": "webpack", | |||
| "rules": { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I this added intentionally or was this the previous config ? webpack-defaults doesn't always remove all previous settings, when applied for the first time, you need to double check here :)
.bablerc file
src/index.js
Outdated
| outputOptions[name] = this.options.worker.output[name]; | ||
| }); | ||
| } | ||
| /* eslint-disable no-underscore-dangle */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it is an entire rule move it to the top :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not entire. Just for this case with child compiler.
test/test.js
Outdated
| @@ -0,0 +1,221 @@ | |||
| /* eslint-disable linebreak-style */ | |||
|
|
|||
| import assert from 'assert'; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to use the buildin Jest Assertions expect instead ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, Jest internals + snapshots only.
webpack-defaults
|
You merged a few PR's, but some don't conform to the Angular Commit Convention, |
| "strict": 0 | ||
| } | ||
| "test": "jest", | ||
| "posttest": "eslint .", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to be a leftover aswell ? 🙃
src/index.js
Outdated
| } | ||
| compilation.cache = compilation.cache[subCache]; | ||
| } | ||
| /* eslint-enable no-param-reassign */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This rule should be relaxed in eslint-config-webpack, I see this line it in every webpack-defaults PR :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do a ton of it but really shouldn't but none the less, we do need to update the config to back off on it a bit.
| "peerDependencies": { | ||
| "webpack": ">=0.9 <2 || ^2.1.0-beta || ^2.2.0" | ||
| "webpack": "^2.0.0 || >= 3.0.0-rc.0 || ^3.0.0" | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the 3.0.0-rc.0. We don't support beta & RC builds once the major in question hits @latest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then why defaults added it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair point, one sec.
It's already fixed in master. Pick up webpack-defaults@1.5.0
package.json
Outdated
| "eslint-plugin-import": "^2.2.0", | ||
| "jest": "^20.0.4", | ||
| "lint-staged": "^4.0.0", | ||
| "mocha": "^3.2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove mocha
.gitignore
Outdated
| .idea | ||
| .vscode | ||
| *.sublime-project | ||
| *.sublime-workspace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really? Is this stuff necessary? Should be always developer responsibility, not project.
| @@ -0,0 +1,20 @@ | |||
| { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@d3viant0ne Do you know .eslintrc without extension is deprecated?
http://eslint.org/docs/user-guide/configuring#configuration-file-formats
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's on the list to be changed when we switch everything over to just use Prettier in defaults 2.0
|
Any news on this PR? This is blocking our update to Webpack 3. |
|
Is there anything we can do to help this PR along? We're unable to upgrade to webpack v3 until this is merged 🙁 |
|
@TrySound @d3viant0ne - Any updates with this PR? I can pick up where the PR left off to get the tests passing on Travis but wanted to check in first so i don't duplicate anything that has already been done. |
|
@dbslone No updates yet. You may finish it. |
|
The tests are passing locally for me. At first I thought it was because I was on node 8 but after installing node 6.11 the tests are still passing. Is anything else left for this PR to be approved? |
|
Got it |
Codecov Report
@@ Coverage Diff @@
## master #81 +/- ##
=========================================
Coverage ? 64.86%
=========================================
Files ? 5
Lines ? 74
Branches ? 26
=========================================
Hits ? 48
Misses ? 23
Partials ? 3
Continue to review full report at Codecov.
|
853aa74 to
81f7aa1
Compare
81f7aa1 to
bf3b723
Compare
- Currently a change that is in defaults master
e21a940 to
8c5dd95
Compare
8c5dd95 to
a6d8208
Compare
* Add webpack-defaults
* ci(Appveyor): Run on latest
- Currently a change that is in defaults master
* chore(defaults): v1.4.0...1.6.0
* fix(cjs): export pitching loader
* test: stats.toJson('minimal') => stats.toJson()
* style: improve code style
I disabled some rules locally and disabled
linebreak-stylebecause it sucks for windows users and auto conversion happen in git out of the box.Issues
webpack-defaults#81